package com.example.dw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dw.entity.SessionPrice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 场次价格Mapper接口
 * @author system
 * @since 2024-01-01
 */
@Mapper
public interface SessionPriceMapper extends BaseMapper<SessionPrice> {

    /**
     * 根据场次ID获取价格列表
     * @param sessionid 场次ID
     * @return 价格列表
     */
    @Select("SELECT * FROM session_price WHERE sessionid = #{sessionid}")
    List<SessionPrice> getSessionPriceBySessionId(@Param("sessionid") Integer sessionid);
} 